package com.pinecone.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.pinecone.dao.CusOrgDepartmentDao;
import com.pinecone.entity.CusOrgDepartmentEntity;
import com.pinecone.service.CusOrgDepartmentService;



@Service("cusOrgDepartmentService")
public class CusOrgDepartmentServiceImpl implements CusOrgDepartmentService {
	@Autowired
	private CusOrgDepartmentDao cusOrgDepartmentDao;
	
	@Override
	public CusOrgDepartmentEntity queryObject(Long departmentId){
		return cusOrgDepartmentDao.queryObject(departmentId);
	}
	
	@Override
	public List<CusOrgDepartmentEntity> queryList(Map<String, Object> map){
		return cusOrgDepartmentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cusOrgDepartmentDao.queryTotal(map);
	}
	
	@Override
	public void save(CusOrgDepartmentEntity cusOrgDepartment){
		cusOrgDepartmentDao.save(cusOrgDepartment);
	}
	
	@Override
	public void update(CusOrgDepartmentEntity cusOrgDepartment){
		cusOrgDepartmentDao.update(cusOrgDepartment);
	}
	
	@Override
	public void delete(Long departmentId){
		cusOrgDepartmentDao.delete(departmentId);
	}
	
	@Override
	public void deleteBatch(Long[] departmentIds){
		cusOrgDepartmentDao.deleteBatch(departmentIds);
	}
	
}
